import random
print("---------lalalla------------")
tag = random.randint(0,9)
time = 0
while True:
    try:
        temp = input("请猜数字：")
        time += 1
        guess = int(temp)
    except Exception:
        time -= 1
        continue
    if guess == tag:
        print("6666666")
        break
    elif guess > tag:
        print("大了")
    elif guess < tag:
        print("小了")
    if time >= 4:
        print("次数已经用完！")
        break
print("------end------")

